package com.jae.service;


import com.jae.model.role.Role;
import com.jae.model.role.RoleDTO;
import com.jae.model.user.User;

import java.util.List;
import java.util.Map;

public interface RoleService {

    List<RoleDTO> findAll(Map map);

    RoleDTO findOne(Map map);

    RoleDTO findById(Integer role_id);

    boolean insert(Role role, User user) throws Exception;

    boolean update(Role role, User user);

    boolean updateDelete(Integer role_id, User user);

    boolean delete(Integer role_id);

    List<String> findByResc(Long resc_id);

}